package com.ruoyi.pom.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * tasks对象 pom_tasks
 * 
 * @author ruoyi
 * @date 2025-01-10
 */
@Data
public class PomTasks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，唯一标识每个任务 */
    private Long id;

    /** 大计划id */
    @Excel(name = "大计划id")
    private Long schedulesId;

    /** 任务类型：基础知识、进阶篇 */
    @Excel(name = "任务类型：基础知识、进阶篇")
    private String type;

    /** 任务的标题 */
    @Excel(name = "任务的标题")
    private String title;

    /** 任务的描述 */
    @Excel(name = "任务的描述")
    private String description;

    /** 任务的状态 */
    @Excel(name = "任务的状态")
    private String status;

    /** 任务的优先级 */
    @Excel(name = "任务的优先级")
    private String priority;

    /** 任务的截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务的截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueDate;

    /** 任务的创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务的创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 任务的更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务的更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除标记 */
    private String delFlag;

    private List<PomEbbinghausReview> pomEbbinghausReviewList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSchedulesId(Long schedulesId) 
    {
        this.schedulesId = schedulesId;
    }

    public Long getSchedulesId() 
    {
        return schedulesId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPriority(String priority) 
    {
        this.priority = priority;
    }

    public String getPriority() 
    {
        return priority;
    }
    public void setDueDate(Date dueDate) 
    {
        this.dueDate = dueDate;
    }

    public Date getDueDate() 
    {
        return dueDate;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schedulesId", getSchedulesId())
            .append("type", getType())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("priority", getPriority())
            .append("dueDate", getDueDate())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }


}
